package org.seven.jrdp.commons.util;

import org.apache.shiro.crypto.hash.SimpleHash;

public abstract class CipherUtils {
	public static String md5(String source) {
		return new SimpleHash("md5", source, null).toHex();
	}

	public static String md5(String source, String salt) {
		return new SimpleHash("md5", source, salt).toHex();
	}
}